<%@ page contentType="text/html;charset=gb2312" %>
<%@ page import="mybean.DBBean" %>
<%@ page import="java.sql.*" %>
<html>
<head><title>cheshi</title></head>
<body>
<%! 
	 String name;
	 String pass;
	 %>
<% 
     DBBean conn=new DBBean();
	 
	 try
		{
			
			String strSql="select Name,Pass from Users where Student_ID='308050420131'";
			ResultSet rsLogin=conn.doQuery(strSql);
			rsLogin.next();
		    name=rsLogin.getString("Name");
			pass=rsLogin.getString("Pass");
			
		}
		catch(Exception e)
		{}
    	
            out.println(name);
			out.println(pass);
 %>
 </body>
 </html>